﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mitek.Repositories
{
    public sealed class MitekContext : DbContext
    {
        public MitekContext()
            : base("DB_Mitek")
        {
        }
        public MitekContext(string nameOrConnectionString)
            : base(nameOrConnectionString)
        {
            this.Configuration.LazyLoadingEnabled = false;
        }

        public void Commit()
        {
            base.SaveChanges();
        }
        #region Auth
        public DbSet<Mitek.Models.Auth.User> Users { get; set; }
        public DbSet<Mitek.Models.Auth.UserRole> UserRoles { get; set; }
        #endregion

        #region Mitek
        public DbSet<Mitek.Models.Mikek.MitekData> MitekDatas { get; set; }
        #endregion


    }
}
